extends ./layout
block style
    link(href='/public/stylesheets/dymap.css', rel='stylesheet')
block script
    script(src='https://webapi.amap.com/maps?v=1.4.10&key=f842f480ae649d8cecb6bf0ede5f21a4', type='text/javascript')
    script(src='/public/javascripts/search.js', type='text/javascript')  

block content   
    #searchBar.weui-search-bar
        .weui-search-bar__form
            .weui-search-bar__box
                i.weui-icon-search
                input#searchInput.weui-search-bar__input(type='search', placeholder='搜索', required='')
                a#searchClear.weui-icon-clear(href='javascript:')
            label#searchText.weui-search-bar__label
                i.weui-icon-search
                span 搜索
        a#searchCancel.weui-search-bar__cancel-btn(href='javascript:') 取消
    .search-labels#searchLabels
        .search-labels-title 大家都在搜...
        .search-labels-box.clearfix
            if sortList.data && sortList.data.length > 0
                each item in sortList.data    
                    span.search-labels-item=item.content
    #searchResult.weui-cells.searchbar-result(style='display: none; transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);')
        .weui-cell.weui-cell_access
            .weui-cell__bd.weui-cell_primary
                p 实时搜索文本

